<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>资料库</title>
<script type="text/javascript"> 
 function doDelete(fjid){
    if(confirm("您确定要删除此附件吗?")){
        document.getElementById("fjid").value=fjid;
    	document.fjForm.submit();
    }
    else
        return;
 }
 function doBack(){
 
 	document.docForm.action="documentation!listZlxxPage.action";
    document.docForm.submit();
     
}
</script>
</head>
<body>
<div class="main">
<div class="main_title"><b>你当前的位置</b>：资料库-资料库维护-查看资料信息</div>

<table align="center"  cellpadding="1" cellspacing="1" class="tablelist">
<s:form name="fjForm" action ="documentation!deleteZlfj.action" namespace="/documentation">
	<s:hidden id="fjid" name="zlfj.id"/>	
	<tr class="listr2">
		<td width="30%" align="right" class="listr6">资料类别</td>
		<td align="left" class="listr5"><s:property value="zlxx.TZllb.name"/></td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right" class="listr6">资料标题</td>
		<td align="left" class="listr5"><s:property value="zlxx.title"/></td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right" class="listr6">备注说明</td>
		<td align="left" class="listr5"><s:property value="zlxx.memo"/></td>
	</tr>
	<tr class="listr2">
		<td width="30%" align="right"  class="listr6" valign="middle">附件列表</td>
		<td align="left" class="listr5">
		    <s:url id="uploadUrl" action="upload!input.action" namespace="/upload">
				<s:param name="zlfj.TZlxx.id">
					<s:property value="zlxx.id"/>
				</s:param>
			</s:url>
		    <s:a href="%{uploadUrl}" cssClass="fontblue">
				<font color="#273DAC">【添加附件】</font>
			</s:a>
			<ul>
				<s:iterator value="haszlfj">
				    <s:url id="downloadUrl" action="download.action" namespace="/download">
						<s:param name="zlfj.id">
							<s:property value="id"/>
						</s:param>
					</s:url>
					<s:url id="deleteUrl" action="documentation!deleteZlfj.action" namespace="/documentation">
						<s:param name="zlfj.id">
							<s:property value="id"/>
						</s:param>
					</s:url>
					<li>
						<s:a href="%{downloadUrl}">
							<s:property value="name"/> （<s:date format="yyyy-MM-dd HH:mm" name="addDate"/> <s:property value="adderId"/>）
						</s:a>
						<s:a href="javascript:doDelete('%{id}')">
							<font color="#273DAC"><I>删除</I></font>
						</s:a>
					</li>	
				</s:iterator>
			</ul>
		</td>	
	</tr>
	</s:form>
	<tr class="listr4">    		
		<td colspan="2">
			<s:form name="docForm" action ="addOrUpdateZlxx!input.action" namespace="/documentation">
				<s:hidden name="zlxx.id"/><s:hidden name="searchzlxx.TZllb.id"/>
				<s:submit cssClass="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'" value="修改" ></s:submit>				
				<input name="back" type="button" class="btn" onmouseover="this.className='btn_hover'" onmouseout="this.className='btn'" value="返回" onclick="doBack()" />
			</s:form>
		</td>	
	</tr>
</table>	
</div>	
</body>
</html>